<template>
  <div>
    <input type="text" v-model="count">
    <button @click="get">点击</button>


    <input type="text" v-model.trim="msg">
    <button @click="getmsg">点击</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: '',
      msg:'信息'
      
    }
  },
  methods: {
    get() {
      console.log(this.count);
    },
    getmsg() {
      console.log(this.msg.length);
    }
  }
}
</script>

<style>

</style>